package com.lynu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lynu.mapper.UserMapper;
import com.lynu.pojo.Headline;
import com.lynu.pojo.PortalOv;
import com.lynu.pojo.Type;
import com.lynu.service.TypeService;
import com.lynu.mapper.TypeMapper;
import com.lynu.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.*;

/**
* @author 31536
* @description 针对表【news_type】的数据库操作Service实现
* @createDate 2024-04-15 21:33:13
*/
@Service
public class TypeServiceImpl extends ServiceImpl<TypeMapper, Type>
    implements TypeService{
    @Autowired
    private TypeMapper typeMapper;
    @Override
    public Result findAllTypes() {
        List<Type> types=typeMapper.findAllTypes();

        return Result.ok(types);
    }

}




